
		<div class="employees index">
			<h1><?php __('Employees');?></h1>
			<table cellpadding="0" cellspacing="0">
			<tr>
					<th><?php echo $this->Paginator->sort('name');?> <br/><?php echo $this->Paginator->sort('surname');?></th>
					<th><?php echo $this->Paginator->sort('address1');?>,&nbsp;<?php echo $this->Paginator->sort('address2');?></th>
					<th><?php echo $this->Paginator->sort('address3');?>,&nbsp;<?php echo $this->Paginator->sort('address4');?></th>
					<th><?php echo $this->Paginator->sort('phone1');?></th>
					<th class="actions"><?php __('Actions');?></th>
			</tr>
			<?php
			$i = 0;
			foreach ($employees as $employee):
				$class = null;
				if ($i++ % 2 == 0) {
					$class = ' class="altrow"';
				}
			?>
			<tr<?php echo $class;?>>
				<td><?php echo $employee['Employee']['name']; ?><br/><?php echo $employee['Employee']['surname']; ?>&nbsp;</td>
				<td><?php echo $employee['Employee']['address1']; ?><br/><?php echo $employee['Employee']['address2']; ?>&nbsp;</td>				
				<td><?php echo $employee['Employee']['address3']; ?><br/><?php echo $employee['Employee']['address4']; ?>&nbsp;</td>
				<td><?php echo $employee['Employee']['phone1']; ?>&nbsp;</td>
				<td class="actions">
					<?php echo $this->Html->link($html->image('firma/actions_16_view.png'), array('action' => 'view', $employee['Employee']['id']),array('escape'=>false,'title'=>__('View', true))); ?>
					<?php echo $this->Html->link($html->image('firma/actions_16_edit.png'), array('action' => 'edit', $employee['Employee']['id']),array('escape'=>false,'title'=>__('Edit', true))); ?>
					<?php echo $this->Html->link($html->image('firma/actions_16_delete.png'), array('action' => 'delete', $employee['Employee']['id']), array('escape'=>false,'title'=>__('Delete', true)), sprintf(__('Are you sure you want to delete # %s?', true), $employee['Employee']['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
			</table>
			<p>
			<?php
			echo $this->Paginator->counter(array(
			'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
			));
			?>	</p>
		
			<div class="paging">
				<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
			 | 	<?php echo $this->Paginator->numbers();?>
		 |
				<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
			</div>
		</div>

		
		
		
		<div class="actions">
			<h3><?php __('Actions'); ?></h3>
			<ul>		
				<li><?php echo $this->Html->link($html->image('firma/actions_customer_add.png'), array('controller' => 'employees', 'action' => 'add'),array('escape'=>false,'title'=>__('New Employee', true))); ?> <div class="clr"></div> <?php echo __('New Employee', true)?></li>
										
			</ul>
		</div>	
